﻿<Page x:Class="Hotel.WPF.ui.Chambre.P_Chambre"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
      mc:Ignorable="d" 
      d:DesignHeight="487" d:DesignWidth="889"
	Title="P_Chambre" Loaded="Page_Loaded">
    <extToolkit:BusyIndicator IsBusy="False" BusyContent="Chargement de la page en cours..." x:Name="busyTool" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0" >
        <Grid Height="481">
            <Label Content="GESTION DES CHAMBRES" Height="28" Margin="10,10,12,0" Name="label1" VerticalAlignment="Top" Background="#FFD3DCF2" FontWeight="Bold" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
            <TabControl Margin="10,43,12,23" Name="tbH">
                <TabItem Header="Chambres" Name="ti_c">
                    <Grid>
                        <GroupBox Header="Ajout d'une chambre" HorizontalAlignment="Left" Margin="10,10,0,0" Name="groupBox1" Width="826" Height="241" VerticalAlignment="Top">
                            <Grid>
                                <Label Content="Type de chambre" Height="28" HorizontalAlignment="Left" Margin="14,39,0,0" Name="label13" VerticalAlignment="Top" />
                                <Label Content="Numéro de chambre" Height="28" HorizontalAlignment="Left" Margin="8,65,0,0" Name="label15" VerticalAlignment="Top" />
                                <Label Content="Notes aditionnelles" Height="28" HorizontalAlignment="Left" Margin="392,120,0,0" Name="label16" VerticalAlignment="Top" />
                                <Label Content="Hotel" Height="28" HorizontalAlignment="Left" Margin="12,5,0,0" Name="label18" VerticalAlignment="Top" />
                                <Label Content="Numéro Etage" Height="28" HorizontalAlignment="Left" Margin="37,95,0,0" Name="label19" VerticalAlignment="Top" />
                                <Label Content="Statut chambre" Height="28" HorizontalAlignment="Left" Margin="393,87,0,0" Name="label20" VerticalAlignment="Top" />
                                <Label Content="Description" Height="28" HorizontalAlignment="Left" Margin="16,126,0,0" Name="label21" VerticalAlignment="Top" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="134,70,0,0" Name="tb_numChambre" VerticalAlignment="Top" Width="69" />
                                <ComboBox ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="133,8,0,0" Name="cb_hotelChamb" VerticalAlignment="Top" Width="172" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="134,98,0,0" Name="tb_numEtageChamb" VerticalAlignment="Top" Width="71" />
                                <TextBox Height="49" HorizontalAlignment="Left" Margin="133,129,0,0" Name="tb_descChamb" VerticalAlignment="Top" Width="242" AcceptsReturn="True" />
                                <ComboBox ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="133,39,0,0" Name="cb_typeChamb" VerticalAlignment="Top" Width="172" />
                                <ComboBox  ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="510,88,0,0" Name="cb_statutChamb" VerticalAlignment="Top" Width="172" />
                                <TextBox AcceptsReturn="True" Height="49" HorizontalAlignment="Left" Margin="509,120,0,0" Name="tb_noteAddiChamb" VerticalAlignment="Top" Width="242" />
                                <Button Content="Ajouter" Height="29" HorizontalAlignment="Left" Margin="336,182,0,0" Name="bt_ajoutChambre" VerticalAlignment="Top" Width="119" Click="bt_ajoutChambre_Click" />
                            </Grid>
                        </GroupBox>
                        <DataGrid AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding}" Margin="14,257,6,25" Name="dg_chambre" Background="#FFB1F2B1">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Hotels.Nom_Hotel}" Header="Hotel" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Ref_Type_Chambres.Nom_Type_Chambre}" Header="Type" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Numero_Chambre}" Header="N°" IsReadOnly="True" Width="50" />
                                <DataGridTextColumn Binding="{Binding Nombre_Etage_Chambre}" Header="N° Etage" IsReadOnly="True" Width="80" />
                                <DataGridTextColumn Binding="{Binding Ref_Statut_Chambres.Nom_Statut_Chambre}" Header="Statut" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding description_chambre}" Header="Description" IsReadOnly="True" Width="200" />
                                <DataGridTextColumn Binding="{Binding Notes_Additionnelles}" Header="Note" IsReadOnly="True" Width="200" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>
                <TabItem Header="Caractéristique Chambres" Name="ti_cc">
                    <Grid />
                </TabItem>
                <TabItem Header="Equipements" Name="ti_eq">
                    <Grid />
                </TabItem>
                <TabItem Header="Réservations" Name="ti_r">
                    <Grid />
                </TabItem>
            </TabControl>
        </Grid>
    </extToolkit:BusyIndicator>
</Page>
